<?php

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/

Route::get('/', 'IndexController@index');

Auth::routes();

Route::get('/home', 'HomeController@index')->name('home');

Route::get('/video/{video_id}','IndexController@video_detail');

Route::post('/get_upload_address','VideoController@create_upload_video');

Route::get('/upload','VideoController@upload')->middleware('referer');

Route::post('/save_video_info','VideoController@save_video_info');

Route::get('/list/{cate_id}','IndexController@video_list');

